package com.geniusk.system.service.impl;

import com.geniusk.system.model.mapper.LoginLogMapper;
import com.geniusk.system.model.pojo.LoginLog;
import com.geniusk.system.service.LoginLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class LoginLogServiceImpl implements LoginLogService {

    @Autowired
    private LoginLogMapper loginLogMapper;

    @Override
    public int insertLoginLog(LoginLog loginLog) {
        return loginLogMapper.insertLoginLog(loginLog);
    }

    @Override
    public List<LoginLog> selectLoginLogByPage(LoginLog loginLog) {
        return loginLogMapper.selectLoginLogByPage(loginLog);
    }

    @Override
    public int deleteLoginLogByIds(Long[] ids) {
        return loginLogMapper.deleteLoginLogByIds(ids);
    }
}
